package com.jesper.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jesper.mapper.OrderShippingMapper;
import com.jesper.model.OrderShipping;
import org.springframework.stereotype.Service;

@Service
public class OrderShippingService extends ServiceImpl<OrderShippingMapper, OrderShipping> {
    public Page<OrderShipping> orderShippingQuery(int page, int pageSize, OrderShipping orderShipping) {

        QueryWrapper<OrderShipping> orderWrapper = new QueryWrapper<>();
        Page mPage = new Page<>(page, pageSize);
        return this.baseMapper.selectPage(mPage, orderWrapper);

    }
}
